package com.cf.index.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author chenfeng
 * @date 2020/1/21
 */
@Controller
public class FindPageController {

    /**
     * 首页
     * @return html路径
     */
    @GetMapping("")
    public String index() {
        return "index";
    }
    
    /**
     * 首页
     * @return html路径
     */
    @GetMapping("index")
    public String toIndex() {
        return "index";
    }

    /**
     * ajax文件上传页面
     * @return html路径
     */
    @GetMapping("toUploadPage")
    public String toUploadPage() {
        return "uploadPage";
    }

    /**
     * ajax文件上传页面2
     * @return html路径
     */
    @GetMapping("uploadPage2")
    public String uploadPage2() {
        return "uploadPage2";
    }

    /**
     * 多文件上传页面
     * @return html路径
     */
    @GetMapping("multiUploadPage")
    public String multiUploadPage() {
        return "multiUploadPage";
    }

    /**
     * shirio银行登录页面
     * @return html路径
     */
    @GetMapping("login")
    public String toBankLoginPage(){
        return "bank/login";
    }

    /**
     * shirio银行主页面
     * @return html路径
     */
    @GetMapping(value = "/bankManage")
    public String bankManage(){
        return "/bank/main";
    }

}
